package com.recruit.wechat.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author LF
 * @since 2020-08-25
 */
@Data
@TableName("wechat_job_application")
@ApiModel(value="WechatJobApplication对象", description="")
public class WechatJobApplication extends Model<WechatJobApplication> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "申请职位ID")
    @TableId(value = "job_application_id", type = IdType.AUTO)
    private Integer jobApplicationId;

    @ApiModelProperty(value = "附件ID")
    @TableField("enclosure_id")
    private Integer enclosureId;

    @ApiModelProperty(value = "简历ID")
    @TableField("resume_id")
    private Integer resumeId;

    @ApiModelProperty(value = "申请时间")
    @TableField(value = "job_application_time",fill = FieldFill.INSERT_UPDATE)
    private String createTime;

    @ApiModelProperty(value = "发布职位ID")
    @TableField("position_id")
    private String positionId;

    @ApiModelProperty(value = "用户ID")
    @TableField("personal_id")
    private String personalId;

    @Override
    protected Serializable pkVal() {
        return this.jobApplicationId;
    }

    @Override
    public String toString() {
        return "WechatJobApplication{" +
            "jobApplicationId=" + jobApplicationId +
            ", enclosureId=" + enclosureId +
            ", resumeId=" + resumeId +
            ", createTime=" + createTime +
                ", positionId=" + positionId +
                ", personalId=" + personalId +
        "}";
    }
}
